// Creates a box dropped from a vehicle (MHQ or Chopper)
[1, "d_m_box", {_this spawn XCreateDroppedBox}] call XNetAddEvent;
// Creates a box dropped through call AirDrop
[1, "d_air_box", {_this spawn XCreateDroppedBox}] call XNetAddEvent;
// Removes a box which was dropped from a vehicle
[1, "d_r_box", {_this spawn XRemABox}] call XNetAddEvent;
// Locks/Unlocks a vehicle. This is accessible to the admin only.
[1, "l_v", {if (alive(_this select 0)) then {(_this select 0) lock (_this select 1)}}] call XNetAddEvent;
// This will run the called code on the server only with the first array of the element being the code
[1, "d_s_exec", {_this spawn compile (_this select 0)}] call XNetAddEvent;
// Executes a mission function on the server.
[1, "d_s_mexecute", {diag_log format["d_s_mexecute %1",_this]; _fnct = {}; call compile Format["_fnct = %1;",(_this select 0)]; _params = _this select 1; _params spawn _fnct;}] call XNetAddEvent; // different handling

d_player_store = "Land_HelipadEmpty_F" createVehicleLocal [0, 0, 0];
d_placed_objs_store = "Land_HelipadEmpty_F" createVehicleLocal [0, 0, 0];

d_player_groups = [];

onPlayerConnected "";
onPlayerDisconnected "[_name, _id, _uid] spawn XfMissionPlayerDisconnected;";

createCenter east;
createCenter west;
createCenter Resistance;
createCenter civilian;
createCenter sideLogic;

[] execVM "base\server\bodies_cleanup.sqf";

diag_log "i_server.sqf";